package santeclair.referentiel.optique.model;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import santeclair.referentiel.optique.config.Constant;

@Entity
@Table(name = "tr_famille_type_verre", catalog = Constant.SCHEMA_NAME, uniqueConstraints = @UniqueConstraint(columnNames = "identifiant_famille_type_verre"))
public class FamilleTypeVerre implements java.io.Serializable {

    private static final long serialVersionUID = 3321875110263328151L;

    /** L'identifiant technique de la famille type verre. */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "identifiant_famille_type_verre", unique = true, nullable = false)
    private Integer id;

    /** Le code famille de type verre. */
    @Column(name = "code_famille_type_verre", unique = false, nullable = false, length = 11)
    private String codeFamilleType;

    /** L'indice de la famille type verre. */
    @Column(name = "libelle_famille_type_verre", unique = false, nullable = false, length = 11)
    private String libelleFamilleType;

    public FamilleTypeVerre() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCodeFamilleType() {
        return codeFamilleType;
    }

    public void setCodeFamilleType(String codeFamilleType) {
        this.codeFamilleType = codeFamilleType;
    }

    public String getLibelleFamilleType() {
        return libelleFamilleType;
    }

    public void setLibelleFamilleType(String libelleFamilleType) {
        this.libelleFamilleType = libelleFamilleType;
    }
}
